import { Request } from "express";
import { TokenObj } from "../dao/Token";

export type LoggedInRequest = Request & {
  userInfo: TokenObj
}

export type SelectReturn<T> = Promise<[T[]]>

export type DataAndTotal<T> = {
  data: T[],
  total: number
}